package start.doubudouyin.service;

import start.doubudouyin.entity.DateNum;
import start.doubudouyin.entity.join.VideoPlay;
import start.doubudouyin.entity.Videoinfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author mmmm
* @description 针对表【videoinfo(视频信息表)】的数据库操作Service
* @createDate 2025-06-09 14:26:27
*/
public interface VideoinfoService extends IService<Videoinfo> {

    /**
     * 添加视频信息
     * @param videoinfo
     * @return
     */
    Integer Videoupload(Videoinfo videoinfo);
    Integer Videoinfoupload(String title, String description,String videoLabel,String videoId);
    Integer  GetLikesCount(String userId);

    /**
     * 获取视频标签数据
     * @return
     */
    List<Integer> getVideoLabelsData();

    DateNum getVideoNumRange30();
    List<VideoPlay> FindAll(Integer videoStatus);
    Videoinfo GetVideoInfoById(String videoId);
    Integer UpdateVideoStatus(Integer videoStatus,String videoId);
    Integer deleteVideoById(String videoId);
    Integer updateVideoPassTime(String videoId);
}
